Favorite ChatDeprecated
Marks or unmarks a chat as a favorite using its `chatId`. This helps with organizing and quickly accessing important chats.
Deprecated: Favorite management is not supported in Platform API v2. Client-side favorite management can be implemented by setting custom chat metadata with Update Chat, then reading it with Get Chat or List Chats.
Usage
import { v0 } from 'v0-sdk'const result = await v0.chats.favorite({ chatId: '123', isFavorite: true,})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat to update. Provided as a path parameter.
Body
Specifies whether the chat should be marked as a favorite.
"true": mark as favorite"false": remove from favorites
Response
Update Chat
Updates the metadata of an existing chat using its `chatId`. Supports changes to the chat name, privacy setting, and custom metadata.
Fork Chat
Creates a new chat fork (duplicate) from a specific version within an existing chat. Useful for branching off alternate directions without modifying the original conversation.